package com.daidai.apps;

import com.daidai.BookService;
import com.daidai.config.SpringConfig;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class App1 {
    public static void main(String[] args) {

        ApplicationContext context = new AnnotationConfigApplicationContext(SpringConfig.class);

        BookService serviceDao = context.getBean("bookService", BookService.class);
        serviceDao.serviceRun();

    }
}
